package com.bto.solar.work.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.sql.Timestamp;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 权限表
 * </p>
 *
 * @author adrian
 * @since 2023-08-28
 */
@Getter
@Setter
@Accessors(chain = true)
@ApiModel(value = "Permissions对象", description = "权限表")
public class Permissions implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("权限id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("权限名称（一般使用路由来充当）")
    private String name;

    @ApiModelProperty("中文名")
    private String chineseName;

    @ApiModelProperty("权限分组")
    private String guardName;

    @ApiModelProperty("父级ID")
    private Integer parentId;

    @ApiModelProperty("排序")
    private Integer sort;

    @ApiModelProperty("是否只能是管理员权限")
    private Boolean onlySuper;

    @ApiModelProperty("创建时间")
    private Timestamp createdAt;

    @ApiModelProperty("更新时间")
    private Timestamp updatedAt;
}
